package com.dog.basics.mqtt.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component
@PropertySource("classpath:mqtt.properties")
@ConfigurationProperties(prefix = "mqtt")
public class MqttEntity {

    /**
     * 账号
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 地址
     */
    private String url;

    /**
     * 生产者ID
     */
    private String producerClientId;

    /**
     * 生产者默认订阅
     */
    private String producerDefaultTopic;

    /**
     * 消费者ID
     */
    private String consumerClientId;

    /**
     * 消费者主题
     */
    private String consumerDefaultTopic;

}
